package com.yunxi.poc.starbucks.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yunxi.poc.starbucks.entity.TStoreCapacity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author shiyuan.xlc
 * @since 2021-08-12
 */
public interface TStoreCapacityMapper extends BaseMapper<TStoreCapacity> {

    @Select("select sum(daily_sales) daily_sales from t_store_capacity ${ew.customSqlSegment}")
    Double sumSales(@Param(Constants.WRAPPER) Wrapper wrapper);
}